
<table cellspacing="1" cellpadding="6" border="0" align="center" width="70%" class="tborder">
<tbody>
    <tr>
        <td class="tcat">vBulletin Message</td>
    </tr>
    <tr>
        <td align="center" class="panelsurround">
        <div class="panel">
            <div align="left">
                <div class="smallfont">You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:</div>
                <ol>
                    <li class="smallfont">You are not logged in. Fill in the form at the bottom of this page and try again.</li>
                    <li class="smallfont">You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?</li>
                    <li class="smallfont">If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.</li>
                </ol>
                {$form['begin']}
                <fieldset class="fieldset">
                    <legend>Log in</legend>
                    <table cellspacing="3" cellpadding="0" border="0" align="center">
                    <tbody>
                    <tr><td align="right"><a id="LoginWithGoogleLink" href="javascript:;"><strong>Google</strong></a></td></tr>
                    <tr>
                        <td>User Name:<br><input type="text" size="50" name="login_username" class="bginput"></td>
                    </tr>
                    <tr>
                        <td>Password:<br><input type="password" size="50" name="login_password" class="bginput"></td>
                    </tr>
                    <tr>
                        <td>
                            <span style="float: right;"><a href="javascript:;">Forgotten Your Password?</a></span>
                            <label for="cb_cookieuser"><input type="checkbox" id="cb_cookieuser" value="1" name="cookieuser">Remember Me?</label>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <input type="button" value="Log in" class="button">
                            <input type="reset" value="Reset Fields" class="button">
                        </td>
                    </tr>
                    </tbody></table>
                </fieldset> 
                {$form['end']}
                <div class="smallfont">The administrator may have required you to <a rel="nofollow" href="register.php?do=signup">register</a> before you can view this page.</div>
            </div>
        </div> 
        </td>
    </tr>
</tbody>
</table> 
<br />                                                                                                             
<script type="text/javascript" language="javascript" src="http://sohagames.todo.vn/webskins/js/popuplib.js"></script>
<script type="text/javascript">      
$('form[name="LoginForm"]').submit(function(){
    var data = $(this).serialize();             
    $.ajaxHistory.ajax(location.hash, data);
    return false;
});  
 
function upgradeToken(){ window.location = '{$close_returnTo}'; };  
           

                 
//mở popup khi click
$(document).ready(function () {  
    $('#LoginWithGoogleLink').click(function() {    
        var extensions =  {$openid_ext};     
        var googleOpener = popupManager.createPopupOpener({
            'realm' : '{$openid_realm}',
            'opEndpoint' : 'https://www.google.com/accounts/o8/ud',
            'returnToUrl' : '{$openid_return_to}',
            'onCloseHandler' : upgradeToken,
            'shouldEncodeUrls' : true,
            'extensions' : extensions
        });      
        googleOpener.popup(450, 500);
        return false;
    });
}); 
</script>